package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.ProductList;

public class ProductListMapper implements RowMapper<ProductList> {

	@Override
	public ProductList mapRow(ResultSet rs, int arg1) throws SQLException {
		ProductList list = new ProductList();
		list.setListID(rs.getInt("listID"));
		list.setAgentID(rs.getInt("agentID"));
		list.setProductID(rs.getInt("productID"));
		list.setListType(rs.getInt("listType"));
		return list;
	}

}
